package cn.zdm.demo2.auth.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZhaoDeman
 * @description
 * @date 2021-01-19
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "IOS_APP")
public class IosAppPO implements Serializable {

    private static final long serialVersionUID = 5165292485952531296L;

    /**
     * 主键
     */
    @TableField(value = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 应用名
     */
    @TableField(value = "appName")
    private String appName;

    /**
     * 应用创建者
     */
    @TableField(value = "appCreator")
    private String appCreator;

    /**
     * 应用创建时间
     */
    @TableField(value = "appCreateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date appCreateTime;

    /**
     * 应用失效时间
     */
    @TableField(value = "appLoseTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date appLoseTime;

    /**
     * 应用加密类型
     */
    @TableField(value = "appEncryptType")
    private String appEncryptType;

    /**
     * 应用解密类型
     */
    @TableField(value = "appDecryptType")
    private String appDecryptType;

    /**
     * 应用编码类型
     */
    @TableField(value = "appEncodeType")
    private String appEncodeType;

}
